package com.dd.pojo.entry;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;



@TableName(value ="sys_user_fold_file")
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@ApiModel("用户文件/文件夹关联")
@Builder
public class UserFoldFile implements Serializable {

    @ApiModelProperty("文件ID")
    @TableField(value = "file_id")
    private String fileId;

    @ApiModelProperty("用户ID")
    @TableField(value = "user_id")
    private String userId;

    @ApiModelProperty("文件上传时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(value = "file_upload_time")
    private LocalDateTime fileUploadTime;


    @ApiModelProperty("文件夹ID")
    @TableField(value = "folder_id")
    private String folderId;

    @ApiModelProperty("文件名称")
    @TableField(value = "file_name")
    private String fileName;


    @ApiModelProperty("文件路径")
    @TableField(value = "file_path")
    private String filePath;


    @ApiModelProperty("文件类型 1 图片 2 文本 3 音乐 4 视频 5其他")
    @TableField(value = "file_type")
    private Integer fileType;



    @TableField(exist = false)
    private static final long serialVersionUID = 10001L;
}